# Maintainer: Dominika Liberda <ja@sdomi.pl>
# Contributor: Dominika Liberda <ja@sdomi.pl>
pkgname=gobang
pkgver=0.1.0_alpha5
_pkgver=0.1.0-alpha.5
pkgrel=1
pkgdesc="Cross-platform TUI database management tool written in Rust"
url="https://github.com/TaKO8Ki/gobang"
arch="x86_64 armv7 armhf aarch64 x86"  # limited by rust/cargo/ring crate
license="GPL-2.0-or-later"
makedepends="
	cargo
	cargo-auditable
	rust
	"
source="https://github.com/TaKO8Ki/gobang/archive/refs/tags/v$_pkgver/gobang-v$_pkgver.tar.gz"
options="!check" # no test suite
builddir="$srcdir/$pkgname-$_pkgver/"


prepare() {
	default_prepare
	cargo fetch --target="$CTARGET" --locked
}

build() {
	cargo auditable build --release --frozen
}

package() {
	install -D -m755 target/release/gobang -t "$pkgdir"/usr/bin/
}

sha512sums="
364c7ece048846ff19a35fba67a3c16b1ff9c1b22b0caea5b9153294d7f2a2518808e15cad37b9f6adacc001f1883d21947468b73c29746299c3126fe44920cc  gobang-v0.1.0-alpha.5.tar.gz
"
